package chain

import "errors"

func (s *service) GetFirstAccount() (string, error) {
	accounts, err := s.chainClient.GetAccounts()
	if err != nil {
		return "", err
	}
	if len(accounts) == 0 {
		return "", errors.New("account not found")
	}
	return accounts[0], nil
}
